package com.mzd.multipledatasources4.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mzd.multipledatasources4.bean.TestBean;
import com.mzd.multipledatasources4.dao.TransactionDao1;

/**
 * @author Administrator
 */
@Service
public class TransactionService1 {

	@Autowired
	private TransactionDao1 ts1;

	@Transactional(rollbackFor = Exception.class)
	public boolean test01SaveTestBean(TestBean t) {
		return ts1.save(t);
	}

}
